package com.ruoyi.ProjectStudents.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ProjectStudents.mapper.ProjectStudentsMapper;
import com.ruoyi.ProjectStudents.domain.ProjectStudents;
import com.ruoyi.ProjectStudents.service.IProjectStudentsService;

/**
 * 项目参与学生表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@Service
public class ProjectStudentsServiceImpl implements IProjectStudentsService 
{
    @Autowired
    private ProjectStudentsMapper projectStudentsMapper;

    /**
     * 查询项目参与学生表
     * 
     * @param id 项目参与学生表主键
     * @return 项目参与学生表
     */
    @Override
    public ProjectStudents selectProjectStudentsById(Long id)
    {
        return projectStudentsMapper.selectProjectStudentsById(id);
    }

    /**
     * 查询项目参与学生表列表
     * 
     * @param projectStudents 项目参与学生表
     * @return 项目参与学生表
     */
    @Override
    public List<ProjectStudents> selectProjectStudentsList(ProjectStudents projectStudents)
    {
        return projectStudentsMapper.selectProjectStudentsList(projectStudents);
    }

    /**
     * 新增项目参与学生表
     * 
     * @param projectStudents 项目参与学生表
     * @return 结果
     */
    @Override
    public int insertProjectStudents(ProjectStudents projectStudents)
    {
        return projectStudentsMapper.insertProjectStudents(projectStudents);
    }

    /**
     * 修改项目参与学生表
     * 
     * @param projectStudents 项目参与学生表
     * @return 结果
     */
    @Override
    public int updateProjectStudents(ProjectStudents projectStudents)
    {
        return projectStudentsMapper.updateProjectStudents(projectStudents);
    }

    /**
     * 批量删除项目参与学生表
     * 
     * @param ids 需要删除的项目参与学生表主键
     * @return 结果
     */
    @Override
    public int deleteProjectStudentsByIds(Long[] ids)
    {
        return projectStudentsMapper.deleteProjectStudentsByIds(ids);
    }

    /**
     * 删除项目参与学生表信息
     * 
     * @param id 项目参与学生表主键
     * @return 结果
     */
    @Override
    public int deleteProjectStudentsById(Long id)
    {
        return projectStudentsMapper.deleteProjectStudentsById(id);
    }
}
